﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BootstrapAdmin.DataAccess.Models.Production;

/// <summary>
/// 进站信息
/// </summary>
[Table("ops_inbound")]

public class InboundInfo
{
    [Key]
    public int Id { get; set; }

    /// <summary>
    /// 工站
    /// </summary>
    [NotNull]
    [Required]
    [Display(Name = "工站")]
    public string? Station { get; set; }

    /// <summary>
    /// 程序配方
    /// </summary>
    [Display(Name = "程序配方")]
    public int Formula { get; set; }

    /// <summary>
    /// 物料号
    /// </summary>
    [Display(Name = "物料号")]
    public string? ProductCode { get; set; }

    /// <summary>
    /// SN
    /// </summary>
    [NotNull]
    [Required]
    [Display(Name = "SN")]
    public string? SN { get; set; }

    /// <summary>
    /// 托盘码
    /// </summary>
    [Display(Name = "托盘码")]
    public string? Pallet { get; set; }

    /// <summary>
    /// 记录时间
    /// </summary>
    [Display(Name = "进站时间")]
    public DateTime CreatedAt { get; set; }
}
